package com.example.myapplication3.interfaces;

import com.example.myapplication3.bean.Beijing;
import com.example.myapplication3.bean.Student1;
import com.example.myapplication3.bean.Student2;
import com.example.myapplication3.bean.Student3;
import com.example.myapplication3.bean.Student4;

import java.util.Map;

public interface IHome {
    interface  View extends BaseView{

            //获取所有城市数据返回
            void getStudent1(Student1 result);
            //获取具体站点
            void getStudent2(Student2 result);
            //获取城市的实时空气
            void getStudent3(Student3 result);
            //获取具体站点开启质量浓度
            void getStudent4(Student4 result);
            void getStudent5(Beijing result);
    }

    //home业务下 P层接口
    interface  Persenter{
        //获取所有城市数据
        void getCity1();
        //获取具体站点
        void getCity2(Map<String,String> map);
        //获取城市的实时空气
        void getCity3(Map<String,String> map);
        //获取具体站点开启质量浓度
        void getCity4(Map<String,String> map);
        void getCity5();
    }

    //home业务下的model
    interface  Model{
        void getCity1(Callback callback);

        //获取天气数据 --> p层调用m层的接口
        void getCity1(Map<String,String>map,Callback callback);
        void getCity2(Map<String,String>map,Callback callback);
        void getCity3(Map<String,String>map,Callback callback);
        void getCity5(Callback callback);
    }
}
